package lhx.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import lhx.dao.UserMapper;
import lhx.model.User;

@Service("userService")
public class UserServiceImpl implements UserServiceI {

	private UserMapper userMapper;
	
	public UserMapper getUserMapper() {
		return userMapper;
	}

	@Autowired
	public void setUserMapper(UserMapper userMapper) {
		this.userMapper = userMapper;
	}

	public User getUserById(String id) {
		return userMapper.selectByPrimaryKey(id);
	}

//	public List<User> getAllUser() {
//		return userMapper.getAllUser();
//	}

//	public List<User> getAllUser2() {
//		// TODO Auto-generated method stub
//		return userMapper.getAllUser2();
//	}

//	public List<User> getAllUser3() {
//		// TODO Auto-generated method stub
//		return userMapper.getAllUser3();
//	}

	public List<User> getAllUser4() {
		// TODO Auto-generated method stub
		return userMapper.getAllUser4();
	}
	
	

}
